﻿<dxc:DXWindow x:Class="ThanNhanTao.frmPhieuThongTinHoSoCongChucVienChuc"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/core"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
        dxc:ThemeManager.ThemeName="Office2007Blue"
        Title="PHIẾU THÔNG TIN HỒ SƠ  CÔNG CHỨC, VIÊN CHỨC"
        WindowState="Maximized" Width="790" Height="600"
        xmlns:uc="clr-namespace:ThanNhanTao.UC">
    <dxc:DXWindow.Resources>
        <Style TargetType="Label">
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="dxe:DateEdit">
            <Setter Property="Margin" Value="2,2" />
            <Setter Property="FontSize" Value="13" />
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
        <Style TargetType="dxe:TextEdit">
            <Setter Property="FontSize" Value="13" />
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Margin" Value="2,2"/>
        </Style>
        <Style TargetType="dxe:ComboBoxEdit">
            <Setter Property="FontSize" Value="13" />
            <Setter Property="FontWeight" Value="Bold"/>
            <Setter Property="Margin" Value="2,2"/>
        </Style>
        <Style TargetType="RadioButton">
            <Setter Property="Margin" Value="2,2" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
        <Style TargetType="GroupBox">
            <Setter Property="FontWeight" Value="Bold" />
        </Style>
    </dxc:DXWindow.Resources>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="250"></RowDefinition>
                <RowDefinition Height="100*"></RowDefinition>
                <RowDefinition Height="40"></RowDefinition>
            </Grid.RowDefinitions>
            <GroupBox Header="I.Thông tin chung" Name="groupBox1" >
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                        <RowDefinition Height="26"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="130"></ColumnDefinition>
                        <ColumnDefinition Width="150*" />
                        <ColumnDefinition Width="120" />
                        <ColumnDefinition Width="150*" />
                    </Grid.ColumnDefinitions>
                    <Label Content="Họ và tên:" Foreground="Red" />
                    <dxe:TextEdit Grid.Column="1" Margin="2,2,102,2" 
                              Name="txtHo" MaxLength="100" TabIndex="1" 
                              CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor"
                              EditValueChanging="txtHo_EditValueChanging" Validate="txtHo_Validate" />
                    <dxe:TextEdit Grid.Column="1" 
                              Name="txtTen" MaxLength="50" TabIndex="2" HorizontalAlignment="Right" Width="100"
                              CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor" 
                              EditValueChanging="txtTen_EditValueChanging"
                              Validate="txtTen_Validate"/>
                    <Label Content="Giới tính:" Foreground="Red"
                       Grid.Column="2"/>
                    <StackPanel Orientation="Horizontal" Grid.Column="4">
                        <RadioButton Content="Nam" Grid.Row="1" HorizontalAlignment="Left" 
                                     Name="rdoNam" GroupName="GioiTinh" TabIndex="3" Checked="rdoNam_Checked"/>
                        <RadioButton Content="Nữ" Margin="40,0,0,0" Name="rdoNu" GroupName="GioiTinh" TabIndex="4" Checked="rdoNu_Checked"/>
                    </StackPanel>
                    <Label Content="Sinh ngày:" Grid.Row="1"/>
                    <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.Column="1">
                        <dxe:TextEdit Grid.Row="4" Name="txtNgaySinh" TabIndex="5" MaxLength="2" Width="50" 
                                      MaskType="RegEx" Mask="\d{0,2}"
                                      EditValueChanging="txtNgaySinh_EditValueChanging"/>
                        <dxe:TextEdit Name="txtThangSinh" TabIndex="6" MaxLength="2" Width="50" 
                                      MaskType="RegEx" Mask="\d{0,2}"
                                      EditValueChanging="txtThangSinh_EditValueChanging"/>
                        <dxe:TextEdit Name="txtNamSinh" TabIndex="7" MaxLength="4" Width="70" 
                                      CausesValidation="False" InvalidValueBehavior="AllowLeaveEditor"
                                      EditValueChanging="txtNamSinh_EditValueChanging"
                                      Validate="txtNamSinh_Validate" MaskType="RegEx" Mask="\d{0,4}" />
                    </StackPanel>
                    <Label Content="Dân tộc:" Foreground="Red"
                       Grid.Row="1" Grid.Column="2"/>
                    <dxe:ComboBoxEdit Grid.Column="3" Grid.Row="1" IsTextEditable="False" Name="cboDanToc" TabIndex="8" EditValueChanging="cboDanToc_EditValueChanging">
                    </dxe:ComboBoxEdit>
                    <Label Content="Tình trạng hôn nhân:" Foreground="Red"
                       Grid.Row="2" Grid.Column="0" />
                    <dxe:TextEdit Grid.Column="1" Grid.Row="2"
                              Name="txtTinhTrangHonNhan" TabIndex="9" MaxLength="100"
                              CausesValidation="True" InvalidValueBehavior="AllowLeaveEditor"
                              EditValueChanging="txtTinhTrangHonNhan_EditValueChanging"/>
                    <Label Content="Địa chỉ thường trú:"
                       Grid.Row="2" Grid.Column="2"/>
                    <dxe:TextEdit Grid.Column="4" Grid.Row="2"
                              Name="txtDiaChiThuongTru" TabIndex="10" MaxLength="200" EditValueChanging="txtDiaChiThuongTru_EditValueChanging"/>
                    <Label Content="Nguyên quán:" Foreground="Red"
                       Grid.Row="3" Grid.Column="0"/>
                    <dxe:TextEdit Grid.Column="1" Grid.Row="3"
                              Name="txtNguyenQuan" TabIndex="11" MaxLength="100"
                              CausesValidation="True" InvalidValueBehavior="AllowLeaveEditor" EditValueChanging="txtNguyenQuan_EditValueChanging"/>
                    <Label Content="Số hiệu công chức:"
                       Grid.Row="3" Grid.Column="2"/>
                    <dxe:TextEdit Grid.Column="4" Grid.Row="3"
                              Name="txtSoHieuCongChuc" TabIndex="12" MaxLength="50" EditValueChanging="txtSoHieuCongChuc_EditValueChanging"/>
                    <Label Content="Điện thoại di động:"
                       Grid.Row="4" Grid.Column="0"/>
                    <dxe:TextEdit Grid.Column="1" Grid.Row="4"
                              Name="txtDienThoaiDiDong" TabIndex="13" MaxLength="25" EditValueChanging="txtDienThoaiDiDong_EditValueChanging"/>
                    <Label Content="Địa chỉ email:"
                       Grid.Row="4" Grid.Column="2"/>
                    <dxe:TextEdit Grid.Column="4" Grid.Row="4"
                              Name="txtDiaChiEmail" TabIndex="14" MaxLength="100" EditValueChanging="txtDiaChiEmail_EditValueChanging"/>
                    <Label Content="Đảng viên:" Foreground="Red"
                       Grid.Row="5" Grid.Column="0"/>
                    <StackPanel Orientation="Horizontal" Grid.Row="5" Grid.Column="1">
                        <RadioButton Content="Có" Grid.Row="1" HorizontalAlignment="Left" Name="rdoDangVienCo" 
                                     GroupName="DangVien" TabIndex="15" Checked="rdoDangVienCo_Checked"/>
                        <RadioButton Content="Không" Margin="50,0,0,0" Name="rdoDangVienKhong" 
                                     GroupName="DangVien" TabIndex="16" Checked="rdoDangVienKhong_Checked"/>
                    </StackPanel>
                    <Label Content="Kết nạp:"
                       Grid.Row="5" Grid.Column="2"/>
                    <dxe:DateEdit Grid.Column="4" Grid.Row="5" 
                              Name="deKetNap" DisplayFormatString="dd/MM/yyyy" Mask="dd/MM/yyyy" MaskCulture="vi-VN" 
                              TabIndex="17" Width="120" HorizontalAlignment="Left" EditValueChanging="deKetNap_EditValueChanging"/>
                    <Label Content="Chính thức:"
                       Grid.Row="6" Grid.Column="2"/>
                    <dxe:DateEdit Grid.Column="4" Grid.Row="6" 
                              Name="deChinhThuc" DisplayFormatString="dd/MM/yyyy" Mask="dd/MM/yyyy" MaskCulture="vi-VN" 
                              TabIndex="18" Width="120" HorizontalAlignment="Left" EditValueChanging="deChinhThuc_EditValueChanging"/>
                    <Label Content="Chức vụ Đảng:" Foreground="Red"
                       Grid.Row="7" Grid.Column="0"/>
                    <dxe:TextEdit Grid.Column="1" Grid.Row="7" Grid.ColumnSpan="3"
                              Name="txtChucVuDang" TabIndex="19" MaxLength="200"
                              CausesValidation="True" InvalidValueBehavior="AllowLeaveEditor" EditValueChanging="txtChucVuDang_EditValueChanging"/>
                </Grid>
            </GroupBox>
            <uc:ucDanhSachHoSoNhanSu Grid.Row="1" x:Name="ucDanhSach"></uc:ucDanhSachHoSoNhanSu>
            <Grid Background="#FFC9E8F6" Grid.Row="2">
                <Grid.RowDefinitions>
                    <RowDefinition Height="4" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="4" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="3" />
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="281*" />
                    <ColumnDefinition Width="80" />
                    <ColumnDefinition Width="8" />
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="8" />
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="8" />
                    <ColumnDefinition Width="75" />
                    <ColumnDefinition Width="3" />
                </Grid.ColumnDefinitions>
                <Button Name="btnThemMoi" Click="btnThemMoi_Click" Content="_Thêm mới" Grid.Column="3" Grid.Row="1" IsEnabled="False" />
                <Button Name="btnLuu" Click="btnLuu_Click" Content="_Lưu" Grid.Column="5" Grid.Row="1" IsEnabled="False" />
                <Button Name="btnInPhieu" Click="btnInPhieu_Click" Content="_In phiếu" Grid.Column="1" Grid.Row="1"/>
                <Button Name="btnDong" Click="btnDong_Click" Content="Đó_ng" Grid.Column="9" Grid.Row="1"/>
                <Button Name="btnXoa" Click="btnXoa_Click" Content="_Xóa" Grid.Column="7" Grid.Row="1" IsEnabled="False"/>
            </Grid>
        </Grid>
</dxc:DXWindow>
